<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Segurança</title>
        <h:outputStylesheet name="./css/login.css"/>
    </h:head>
    <h:body>
        <h:form id="center">
            
            <h:graphicImage library="img" name="logo.png" width="300"/> 
            <p:panel header="Login">

                <h:panelGrid columns="2">
                    <h:outputLabel value="Usuario: "/>
                    <h:inputText value="#{LoginMB.usuario.nome}"/>
                    <h:outputLabel value="Senha: "/>
                    <h:inputSecret value="#{LoginMB.usuario.senha}" />
                  
                    <f:facet name="footer">
                        <h:commandButton action="#{LoginMB.login}" value="Entrar"/>
                    </f:facet>
                </h:panelGrid>
            </p:panel>
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
        </h:form>
    </h:body>
</html>

